package com.java.service.Impl;

import com.java.Exception.MyException;
import com.java.dao.Impl.addFlightImpl;
import com.java.dao.addFlight;
import com.java.entity.FlightInformation;
import com.java.service.AddFlightService;

import java.sql.SQLException;

public class AddFlightImpl implements AddFlightService {
   addFlight flight=new addFlightImpl();
    @Override
    public boolean addFlight(FlightInformation flightInf) throws SQLException , MyException {
     int i=flight.addFlight(flightInf);
     if (i>0){
         return true;
     }
     return false;
    }
}
